package stu.aistar.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import stu.aistar.mapper.SeatsMapper;
import stu.aistar.service.ISeatsService;

@Service
public class ISeatsServiceImpl implements ISeatsService {

    @Autowired
    private SeatsMapper seatsMapper;
    @Override
    public Integer updateStateSelected(Integer id) {
        Integer result=0;
        result=seatsMapper.updateStateSelected(id);
        return result;
    }

    @Override
    public Integer updateStateAll(Integer movieId, Integer hallId, Integer sessionId) {
        return seatsMapper.updateStateAll(movieId, hallId, sessionId);
    }
}
